package com.digua.base.api

import org.xutils.common.Callback
import java.io.File

abstract class DownloadListener : Callback.ProgressCallback<File> {

    override fun onSuccess(file: File?) {
    }

    override fun onError(ex: Throwable?, isOnCallback: Boolean) {
    }

    override fun onCancelled(cex: Callback.CancelledException?) {
    }

    override fun onFinished() {
    }

    override fun onWaiting() {
    }

    override fun onStarted() {
    }

    override fun onLoading(total: Long, current: Long, isDownloading: Boolean) {
    }
}